<template>
	<view class="tag c-c-c" v-if="type === 1 || type === 2 || type === 3 "
		:style="{'background': type === 1 ? 'linear-gradient( 270deg, #FF3315 0%, #FFB034 100%);' : type === 2 ? '#49D38E' : '#505054'}">
		{{type === 1 ? '豪华型' : type === 2 ? '新能源' : type === 3 ? '商务型' : ''}}
	</view>
</template>

<script>
	export default {
		name: "tag",
		props: {
			type: {
				type: Number,
				default: 0
			}
		},
		data() {
			return {
			};
		}
	}
</script>

<style>
	.tag {
		width: 76rpx;
		height: 34rpx;
		border-radius: 4rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 20rpx;
		color: #FFFFFF;
		line-height: 28rpx;
	}
</style>